/* 
 * File:   main.c
 * Author: abaza
 *
 * Created on October 11, 2011, 10:49 AM
 */

#include <stdio.h>
#include <stdlib.h>

/*
 * 
 */
void readconfig()
{
	FILE *file;
	
	char line[256];
	int linenum = 0;
	while (fgets(line, 256, file) != NULL) {
		char ip[256], mac[256];

		linenum++;
		if (line[0] == '#') continue;

		if (sscanf(line, "%s %s", ip, mac) != 2) {
			fprintf(stderr, "Syntax error, line %d\n", linenum);
			continue;
		}

		printf("Line %d:  IP %s MAC %s\n", linenum, ip, mac);
	}
}

int main(int argc, char** argv)
{

	return(EXIT_SUCCESS);
}

